\hypertarget{class____Detector}{}\section{\+\_\+\+\_\+\+Detector Class Reference}
\label{class____Detector}\index{\+\_\+\+\_\+\+Detector@{\+\_\+\+\_\+\+Detector}}


detect particle information by some paramters, can set the detector position, size and energy detection range  




{\ttfamily \#include $<$detector.\+h$>$}



Collaboration diagram for \+\_\+\+\_\+\+Detector\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{d1/dbc/class____Detector__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{class____Detector_ae0584bb75f0c366cec820cc939ca1634}{}{\bfseries \+\_\+\+\_\+\+Detector} (const int id, const int \hyperlink{class____Detector_af20ae6deadf80e54c7cfa32320267878}{species}, const \hyperlink{class____Vect2}{\+\_\+\+\_\+\+Vect2}$<$ double $>$ \&\hyperlink{class____Detector_a02385e95baafe7689317f37f0a6b4be9}{ekrange}, const \hyperlink{class____Vect2}{\+\_\+\+\_\+\+Vect2}$<$ double $>$ \&\hyperlink{class____Detector_a455f20e1913a2d8b1085a602774e59aa}{xymin}, const \hyperlink{class____Vect2}{\+\_\+\+\_\+\+Vect2}$<$ double $>$ \&xymax, const \hyperlink{class____Vect2}{\+\_\+\+\_\+\+Vect2}$<$ double $>$ \&\hyperlink{class____Detector_ab6433e6cc87cc8c8bcec4c62074b57cd}{dxy})\label{class____Detector_ae0584bb75f0c366cec820cc939ca1634}

\item 
\hypertarget{class____Detector_aa39464466ecc5df1380dcefb4eb834d4}{}void \hyperlink{class____Detector_aa39464466ecc5df1380dcefb4eb834d4}{init} (\hyperlink{class____Simbox}{\+\_\+\+\_\+\+Simbox} \&mybox)\label{class____Detector_aa39464466ecc5df1380dcefb4eb834d4}

\begin{DoxyCompactList}\small\item\em initialize the simbox \end{DoxyCompactList}\item 
\hypertarget{class____Detector_a5f965b667d2cb12b09dfc17169e69c34}{}void \hyperlink{class____Detector_a5f965b667d2cb12b09dfc17169e69c34}{detect} (\hyperlink{class____Simbox}{\+\_\+\+\_\+\+Simbox} \&mybox)\label{class____Detector_a5f965b667d2cb12b09dfc17169e69c34}

\begin{DoxyCompactList}\small\item\em perform a detection \end{DoxyCompactList}\item 
\hypertarget{class____Detector_a0443443a373f8843798b55cc55eaad24}{}void {\bfseries destroy} ()\label{class____Detector_a0443443a373f8843798b55cc55eaad24}

\item 
\hypertarget{class____Detector_acbc38f4f00ed309fe9af6e9e96663a18}{}void \hyperlink{class____Detector_acbc38f4f00ed309fe9af6e9e96663a18}{reset} ()\label{class____Detector_acbc38f4f00ed309fe9af6e9e96663a18}

\begin{DoxyCompactList}\small\item\em reset the detector \end{DoxyCompactList}\item 
\hypertarget{class____Detector_a173e1ab4bdf189c927dc65e9d76b86ff}{}double \hyperlink{class____Detector_a173e1ab4bdf189c927dc65e9d76b86ff}{myy} (const double \&x)\label{class____Detector_a173e1ab4bdf189c927dc65e9d76b86ff}

\begin{DoxyCompactList}\small\item\em line function of this detector surface \end{DoxyCompactList}\item 
\hypertarget{class____Detector_a90cd5fcc2463b932b78a1a89932fc090}{}int \hyperlink{class____Detector_a90cd5fcc2463b932b78a1a89932fc090}{is\+\_\+near} (const \hyperlink{class____Vect2}{\+\_\+\+\_\+\+Vect2}$<$ double $>$ \&posi)\label{class____Detector_a90cd5fcc2463b932b78a1a89932fc090}

\begin{DoxyCompactList}\small\item\em return -\/1, 0, 1 3 types of near, 0\+: far, -\/1\+: near under, 1\+: near above \end{DoxyCompactList}\item 
\hypertarget{class____Detector_aecb73e6c193aa710c91fa1672cfa5329}{}void {\bfseries dump} (const int \&rank, const int \&n, string fname)\label{class____Detector_aecb73e6c193aa710c91fa1672cfa5329}

\end{DoxyCompactItemize}
\subsection*{Data Fields}
\begin{DoxyCompactItemize}
\item 
\hypertarget{class____Detector_aed4edc47fa75b9326ec29b73346684cd}{}int {\bfseries id}\label{class____Detector_aed4edc47fa75b9326ec29b73346684cd}

\item 
\hypertarget{class____Detector_af20ae6deadf80e54c7cfa32320267878}{}int \hyperlink{class____Detector_af20ae6deadf80e54c7cfa32320267878}{species}\label{class____Detector_af20ae6deadf80e54c7cfa32320267878}

\begin{DoxyCompactList}\small\item\em capture which kind of particles \end{DoxyCompactList}\item 
\hypertarget{class____Detector_ad7b88caef7b358c38883d57f4b6bc49e}{}double \hyperlink{class____Detector_ad7b88caef7b358c38883d57f4b6bc49e}{delta\+\_\+t}\label{class____Detector_ad7b88caef7b358c38883d57f4b6bc49e}

\begin{DoxyCompactList}\small\item\em time step of simualtion \end{DoxyCompactList}\item 
\hypertarget{class____Detector_aaad55e71f49011059a0e76318897b84b}{}int \hyperlink{class____Detector_aaad55e71f49011059a0e76318897b84b}{if\+\_\+ek} = 0\label{class____Detector_aaad55e71f49011059a0e76318897b84b}

\begin{DoxyCompactList}\small\item\em if detect by energy range \end{DoxyCompactList}\item 
\hypertarget{class____Detector_a02385e95baafe7689317f37f0a6b4be9}{}\hyperlink{class____Vect2}{\+\_\+\+\_\+\+Vect2}$<$ double $>$ \hyperlink{class____Detector_a02385e95baafe7689317f37f0a6b4be9}{ekrange}\label{class____Detector_a02385e95baafe7689317f37f0a6b4be9}

\begin{DoxyCompactList}\small\item\em energy range \end{DoxyCompactList}\item 
\hypertarget{class____Detector_a455f20e1913a2d8b1085a602774e59aa}{}\hyperlink{class____Vect2}{\+\_\+\+\_\+\+Vect2}$<$ double $>$ \hyperlink{class____Detector_a455f20e1913a2d8b1085a602774e59aa}{xymin}\label{class____Detector_a455f20e1913a2d8b1085a602774e59aa}

\begin{DoxyCompactList}\small\item\em spatial domain of detector box \end{DoxyCompactList}\item 
\hypertarget{class____Detector_a7b2b47dd7a3d13bc06b5b9ea7ad6d81b}{}\hyperlink{class____Vect2}{\+\_\+\+\_\+\+Vect2}$<$ double $>$ {\bfseries xymax}\label{class____Detector_a7b2b47dd7a3d13bc06b5b9ea7ad6d81b}

\item 
\hypertarget{class____Detector_aa0afa05a5a829c4dbbc2a1d6a89c380c}{}int \hyperlink{class____Detector_aa0afa05a5a829c4dbbc2a1d6a89c380c}{front}\label{class____Detector_aa0afa05a5a829c4dbbc2a1d6a89c380c}

\begin{DoxyCompactList}\small\item\em face to which surface \end{DoxyCompactList}\item 
\hypertarget{class____Detector_ab6433e6cc87cc8c8bcec4c62074b57cd}{}\hyperlink{class____Vect2}{\+\_\+\+\_\+\+Vect2}$<$ double $>$ \hyperlink{class____Detector_ab6433e6cc87cc8c8bcec4c62074b57cd}{dxy}\label{class____Detector_ab6433e6cc87cc8c8bcec4c62074b57cd}

\begin{DoxyCompactList}\small\item\em deltax of cell \end{DoxyCompactList}\item 
\hypertarget{class____Detector_a502055dd1b16f61c1779d94f3c711440}{}int \hyperlink{class____Detector_a502055dd1b16f61c1779d94f3c711440}{dir} = 0\label{class____Detector_a502055dd1b16f61c1779d94f3c711440}

\begin{DoxyCompactList}\small\item\em along x, or y \end{DoxyCompactList}\item 
\hypertarget{class____Detector_af8eb8a463f0543c8d08697fe6f2d7e69}{}vector$<$ \hyperlink{class____Vect2}{\+\_\+\+\_\+\+Vect2}$<$ int $>$ $>$ {\bfseries cell\+\_\+pos}\label{class____Detector_af8eb8a463f0543c8d08697fe6f2d7e69}

\item 
\hypertarget{class____Detector_a127e6ca996a95eb0dabbb301df5faf87}{}\hyperlink{class____Ptclslist}{\+\_\+\+\_\+\+Ptclslist} {\bfseries mylist}\label{class____Detector_a127e6ca996a95eb0dabbb301df5faf87}

\item 
\hypertarget{class____Detector_adc74e097468951ea39c70039ee758f51}{}int {\bfseries total}\label{class____Detector_adc74e097468951ea39c70039ee758f51}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
detect particle information by some paramters, can set the detector position, size and energy detection range 

The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
detector.\+h\end{DoxyCompactItemize}
